package getPortsList

import (
	"log"

	"go.bug.st/serial"
)

func InitSerialPort() (ports []string, err error) {
	ports, err = serial.GetPortsList()
	if err != nil {
		log.Fatal(err)
	}
	return
}
